import Vue from "vue";
import VueRouter from "vue-router";
import MyOne from '@/views/MyOne.vue'
import MyOne1 from '@/views/MyOne1.vue'
import MyOne2 from '@/views/MyOne2.vue'
import MyOne3 from '@/views/MyOne3.vue'
import MyTow from '@/views/MyTow.vue'
import MyThree from '@/views/MyThree.vue'
import NotFound from '@/views/NotFound.vue'
Vue.use(VueRouter);
const router = new VueRouter({
    routes: [
        { path: "/", redirect: "/one" },
        { path: "/one", component: MyOne ,children: [
            { path: "/one1", component: MyOne1 },
            { path: "/one2", component: MyOne2 },
            { path: "/one3", component: MyOne3 },
          ], },
        { path: "/tow", component: MyTow },
        { path: "/three", component: MyThree },
        { path: "*", component: NotFound },
    ]
});

export default router;
